<?php

$array1 = [1, 2, 3];
$array2 = [1, 2, 3];
$newArray =[];
array_push($newArray, ...$array1);
//期望结果 [1,2,3,1,2,3]
//for ($i = 0; $i < count($array); $i++) {
//    array_push($newArray, $array[$i]);
//}
//array_merge($newArray, $array);
echo $newArray;